{% extends 'base.html' %}

{% load pp_url %}
{% load argumenttags %}
{% load tag_helpers %}
{% load consensustags %}

{% block css %}
<link rel="stylesheet" type="text/css" href="/static/style.css" />
{% endblock %}

{% block content %}
	<div class="stage">
		<div class="issuemask">
            
			 <div class="issuebound">
                <h1>Objects for {{request.object.name}}</h1>
                {% pp_get_objects_for_tag object=request.object %}

                    <h2>Issues:</h2>
                    <ul>                    
                    {% for issue in pp_tag.issues %}
                         {% pp_consensus_get object=issue.id user=request.user %}
                        <li><a href="{% pp_url template='issue_detail.html' object=issue%}">{{issue.name}} ({{pp_consensus.interest|floatformat}})</a></li>
                         {% endpp_consensus_get %}                    
                    {% endfor %}
                    </ul>
                    <h2>Solutions:</h2>
                    <ul>                    
                    {% for solution in pp_tag.solutions %}
                         {% pp_consensus_get object=solution.id user=request.user %}
                        <li><a href="{% pp_url template='solution_detail.html' object=solution%}">{{solution.name}}  ({{pp_consensus.interest|floatformat}})</a></li>
                         {% endpp_consensus_get %}                    
                    {% endfor %}
                    </ul>                    
                    <h2>Arguments:</h2>
                    <ul>                                        
                    {% for argument in pp_tag.arguments %}
                         {% pp_consensus_get object=argument.id user=request.user %}
                       <li><a href="{% pp_url template='argument_detail.html' object=argument%}">{{argument.name}} ({{pp_consensus.interest|floatformat}})</a></li>
                         {% endpp_consensus_get %}                    
                    {% endfor %}
                    </ul>                    
                {% endpp_get_objects_for_tag %}
			</div>


            <div class="rightcol">

            {% include "_rightcol.html" %}

            </div>
		</div>
	</div>
    </div>
{% endblock content %}
</body>
</html>
